
import com.adobe.cairngorm.control.CairngormEventDispatcher;

import net.optix.ip.events.AcceptAssignCopyrightEvent;
import net.optix.ip.model.ModelLocator;
import net.optix.ip.vo.CopyrightVO;
[Bindable]
private var model:ModelLocator	=	ModelLocator.getInstance();

private function accept():void
{
	var vo:CopyrightVO	=	model.currentCopyright;
	vo.bConfirm			=	1;
	
	var event:AcceptAssignCopyrightEvent	=	new AcceptAssignCopyrightEvent(vo);
	com.adobe.cairngorm.control.CairngormEventDispatcher.getInstance().dispatchEvent(event);
}

private function decline():void
{
	var vo:CopyrightVO	=	model.currentCopyright;
	vo.bConfirm			=	-1;
	
	var event:AcceptAssignCopyrightEvent	=	new AcceptAssignCopyrightEvent(vo);
	com.adobe.cairngorm.control.CairngormEventDispatcher.getInstance().dispatchEvent(event);
}